<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head><meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><title>
StatementBackwardsCompat
</title><link rel="stylesheet" type="text/css" href="../../../stylesheet.css" />
<script type="text/javascript" src="../../../animate.js"></script>
</head><body onload="openLink();">
<table class="content"><tr class="content"><td class="content"><div class="contentDiv">
<h1>StatementBackwardsCompat</h1>
Allows us to compile on older platforms, while still implementing the methods
 from the newer JDBC API.<br /><br />
<table class="block"><tr onclick="return allDetails()"><th colspan="2">Methods</th></tr>
<tr id="__0" onclick="return on(0)">
<td class="return">String</td><td class="method">
<a id="enquoteIdentifier_String_boolean" href="#enquoteIdentifier_String_boolean">enquoteIdentifier</a>(String identifier, boolean alwaysQuote)
<div class="methodText">Enquotes the specified identifier.</div>
</td></tr>
<tr onclick="return off(0)" class="detail" id="_0">
<td class="return">String</td><td>
<a id="enquoteIdentifier_String_boolean" href="#enquoteIdentifier_String_boolean">enquoteIdentifier</a>(String identifier, boolean alwaysQuote) throws SQLException
<div class="methodText">Enquotes the specified identifier.</div>
<div class="itemTitle">Parameters:</div>
<div class="item">identifier - identifier to quote if required</div>
<div class="item">alwaysQuote - if {@code true} identifier will be quoted unconditionally</div>
<div class="itemTitle">Returns:</div>
<div class="item">specified identifier quoted if required or explicitly requested</div>
</td></tr>
<tr id="__1" onclick="return on(1)">
<td class="return">long[]</td><td class="method">
<a id="executeLargeBatch" href="#executeLargeBatch">executeLargeBatch</a>()
<div class="methodText">Executes the batch.</div>
</td></tr>
<tr onclick="return off(1)" class="detail" id="_1">
<td class="return">long[]</td><td>
<a id="executeLargeBatch" href="#executeLargeBatch">executeLargeBatch</a>() throws SQLException
<div class="methodText">Executes the batch.
 If one of the batched statements fails, this database will continue.</div>
<div class="itemTitle">Returns:</div>
<div class="item">the array of update counts</div>
</td></tr>
<tr id="__2" onclick="return on(2)">
<td class="return">long</td><td class="method">
<a id="executeLargeUpdate_String" href="#executeLargeUpdate_String">executeLargeUpdate</a>(String sql)
<div class="methodText">Executes a statement (insert, update, delete, create, drop)
 and returns the update count.</div>
</td></tr>
<tr onclick="return off(2)" class="detail" id="_2">
<td class="return">long</td><td>
<a id="executeLargeUpdate_String" href="#executeLargeUpdate_String">executeLargeUpdate</a>(String sql) throws SQLException
<div class="methodText">Executes a statement (insert, update, delete, create, drop)
 and returns the update count.
 If another result set exists for this statement, this will be closed
 (even if this statement fails).

 If auto commit is on, this statement will be committed.
 If the statement is a DDL statement (create, drop, alter) and does not
 throw an exception, the current transaction (if any) is committed after
 executing the statement.</div>
<div class="itemTitle">Parameters:</div>
<div class="item">sql - the SQL statement</div>
<div class="itemTitle">Returns:</div>
<div class="item">the update count (number of row affected by an insert,
         update or delete, or 0 if no rows or the statement was a
         create, drop, commit or rollback)</div>
<div class="itemTitle">Throws:</div>
<div class="item">SQLException - if a database error occurred or a
         select statement was executed</div>
</td></tr>
<tr id="__3" onclick="return on(3)">
<td class="return">long</td><td class="method">
<a id="executeLargeUpdate_String_int" href="#executeLargeUpdate_String_int">executeLargeUpdate</a>(String sql, int autoGeneratedKeys)
<div class="methodText">Executes a statement and returns the update count.</div>
</td></tr>
<tr onclick="return off(3)" class="detail" id="_3">
<td class="return">long</td><td>
<a id="executeLargeUpdate_String_int" href="#executeLargeUpdate_String_int">executeLargeUpdate</a>(String sql, int autoGeneratedKeys) throws SQLException
<div class="methodText">Executes a statement and returns the update count.
 This method just calls executeUpdate(String sql) internally.
 The method getGeneratedKeys supports at most one columns and row.</div>
<div class="itemTitle">Parameters:</div>
<div class="item">sql - the SQL statement</div>
<div class="item">autoGeneratedKeys - ignored</div>
<div class="itemTitle">Returns:</div>
<div class="item">the update count (number of row affected by an insert,
         update or delete, or 0 if no rows or the statement was a
         create, drop, commit or rollback)</div>
<div class="itemTitle">Throws:</div>
<div class="item">SQLException - if a database error occurred or a
         select statement was executed</div>
</td></tr>
<tr id="__4" onclick="return on(4)">
<td class="return">long</td><td class="method">
<a id="executeLargeUpdate_String_int-" href="#executeLargeUpdate_String_int-">executeLargeUpdate</a>(String sql, int[] columnIndexes)
<div class="methodText">Executes a statement and returns the update count.</div>
</td></tr>
<tr onclick="return off(4)" class="detail" id="_4">
<td class="return">long</td><td>
<a id="executeLargeUpdate_String_int-" href="#executeLargeUpdate_String_int-">executeLargeUpdate</a>(String sql, int[] columnIndexes) throws SQLException
<div class="methodText">Executes a statement and returns the update count.
 This method just calls executeUpdate(String sql) internally.
 The method getGeneratedKeys supports at most one columns and row.</div>
<div class="itemTitle">Parameters:</div>
<div class="item">sql - the SQL statement</div>
<div class="item">columnIndexes - ignored</div>
<div class="itemTitle">Returns:</div>
<div class="item">the update count (number of row affected by an insert,
         update or delete, or 0 if no rows or the statement was a
         create, drop, commit or rollback)</div>
<div class="itemTitle">Throws:</div>
<div class="item">SQLException - if a database error occurred or a
         select statement was executed</div>
</td></tr>
<tr id="__5" onclick="return on(5)">
<td class="return">long</td><td class="method">
<a id="executeLargeUpdate_String_String-" href="#executeLargeUpdate_String_String-">executeLargeUpdate</a>(String sql, String[] columnNames)
<div class="methodText">Executes a statement and returns the update count.</div>
</td></tr>
<tr onclick="return off(5)" class="detail" id="_5">
<td class="return">long</td><td>
<a id="executeLargeUpdate_String_String-" href="#executeLargeUpdate_String_String-">executeLargeUpdate</a>(String sql, String[] columnNames) throws SQLException
<div class="methodText">Executes a statement and returns the update count.
 This method just calls executeUpdate(String sql) internally.
 The method getGeneratedKeys supports at most one columns and row.</div>
<div class="itemTitle">Parameters:</div>
<div class="item">sql - the SQL statement</div>
<div class="item">columnNames - ignored</div>
<div class="itemTitle">Returns:</div>
<div class="item">the update count (number of row affected by an insert,
         update or delete, or 0 if no rows or the statement was a
         create, drop, commit or rollback)</div>
<div class="itemTitle">Throws:</div>
<div class="item">SQLException - if a database error occurred or a
         select statement was executed</div>
</td></tr>
<tr id="__6" onclick="return on(6)">
<td class="return">long</td><td class="method">
<a id="getLargeMaxRows" href="#getLargeMaxRows">getLargeMaxRows</a>()
<div class="methodText">Gets the maximum number of rows for a ResultSet.</div>
</td></tr>
<tr onclick="return off(6)" class="detail" id="_6">
<td class="return">long</td><td>
<a id="getLargeMaxRows" href="#getLargeMaxRows">getLargeMaxRows</a>() throws SQLException
<div class="methodText">Gets the maximum number of rows for a ResultSet.</div>
<div class="itemTitle">Returns:</div>
<div class="item">the number of rows where 0 means no limit</div>
<div class="itemTitle">Throws:</div>
<div class="item">SQLException - if this object is closed</div>
</td></tr>
<tr id="__7" onclick="return on(7)">
<td class="return">long</td><td class="method">
<a id="getLargeUpdateCount" href="#getLargeUpdateCount">getLargeUpdateCount</a>()
<div class="methodText">Returns the last update count of this statement.</div>
</td></tr>
<tr onclick="return off(7)" class="detail" id="_7">
<td class="return">long</td><td>
<a id="getLargeUpdateCount" href="#getLargeUpdateCount">getLargeUpdateCount</a>() throws SQLException
<div class="methodText">Returns the last update count of this statement.</div>
<div class="itemTitle">Returns:</div>
<div class="item">the update count (number of row affected by an insert, update or
         delete, or 0 if no rows or the statement was a create, drop,
         commit or rollback; -1 if the statement was a select).</div>
<div class="itemTitle">Throws:</div>
<div class="item">SQLException - if this object is closed or invalid</div>
</td></tr>
<tr id="__8" onclick="return on(8)">
<td class="return">boolean</td><td class="method">
<a id="isSimpleIdentifier_String" href="#isSimpleIdentifier_String">isSimpleIdentifier</a>(String identifier)
<div class="methodText">Checks if specified identifier may be used without quotes.</div>
</td></tr>
<tr onclick="return off(8)" class="detail" id="_8">
<td class="return">boolean</td><td>
<a id="isSimpleIdentifier_String" href="#isSimpleIdentifier_String">isSimpleIdentifier</a>(String identifier) throws SQLException
<div class="methodText">Checks if specified identifier may be used without quotes.</div>
<div class="itemTitle">Parameters:</div>
<div class="item">identifier - identifier to check</div>
<div class="itemTitle">Returns:</div>
<div class="item">is specified identifier may be used without quotes</div>
</td></tr>
<tr id="__9" onclick="return on(9)">
<td class="return">void</td><td class="method">
<a id="setLargeMaxRows_long" href="#setLargeMaxRows_long">setLargeMaxRows</a>(long max)
<div class="methodText">Gets the maximum number of rows for a ResultSet.</div>
</td></tr>
<tr onclick="return off(9)" class="detail" id="_9">
<td class="return">void</td><td>
<a id="setLargeMaxRows_long" href="#setLargeMaxRows_long">setLargeMaxRows</a>(long max) throws SQLException
<div class="methodText">Gets the maximum number of rows for a ResultSet.</div>
<div class="itemTitle">Parameters:</div>
<div class="item">max - the number of rows where 0 means no limit</div>
<div class="itemTitle">Throws:</div>
<div class="item">SQLException - if this object is closed</div>
</td></tr>
</table>
</div></td></tr></table></body></html>
